package net.scrumtool.view;

import java.util.List;

import net.scrumtool.model.Sprint;
import net.scrumtool.technics.DAO;
import net.scrumtool.technics.Utils;

import org.eclipse.jface.viewers.ComboViewer;
import org.eclipse.jface.viewers.TableViewer;
import org.eclipse.jface.viewers.TableViewerColumn;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.SashForm;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.wb.swt.SWTResourceManager;

public class Home {
	protected Shell shell;
	private TabItem tabProducts;
	private Text textProducts;
	private TabFolder tabFolder;
	private Table table;

	private ToolItem tltmAddSprints;

	private Group grpSprint;

	private Table tableProducts;
	private Table tableCollaborators;
	private Table tableSprints;
	private ToolItem tltmEditSprints;
	private ToolItem tltmDeleteSprints;
	private ToolItem tltmEditProduct;
	private ToolItem tltmDelProduct;
	private ToolItem tltmAddProduct;
	private Group grpProject;
	private Group grpCollaborators;
	private ToolItem tltmEditCollaborator;
	private ToolItem tltmDelCollaborator;
	private ToolItem tltmAddCollaborator;
	private Text txtNameProject;
	private Button btnProducts;

	private TableViewer tableViewerCollaborators;
	private Text txtFirstnameCollaborators;
	private Text txtLastNameCollaborators;
	private Text txtEmailCollaborators;
	private Text txtPasswordCollaborators;
	private Text txtConfirmPasswordCollaborators;

	private TableViewer tableViewerSprints;
	private Text txtNameSprint;
	private TableColumn col;
	private TableViewer tableViewerProducts;
	private StyledText txtDescriptionProduct;
	private Label lblLastnameCollaborators;
	private Button btnCollaborators;
	private Button btnSprint;
	private Label lblInfoUser;

	private DateTime dtEndSprint;
	private DateTime dtStartSprint;
	private Combo cbProductsSprints;
	private ComboViewer comboViewerSprint;

	private ToolItem tltmOpenProduct;
	private Table tableProductDashboard;
	private Table tableSprintDashboard;
	private ToolItem tltmOpenSprints;

	private ToolItem tltmEditCollaboratorsProduct;
	private TableViewer tableViewerProductDashboard;
	private TableViewer tableViewerSprintDashboard;

	private TableColumn tblclmnNom;
	private TableViewerColumn tableViewerColumn;
	private TableColumn tblclmnProduct;
	private TableViewerColumn tableViewerColumn_1;
	private TableColumn tblclmnParticipants;
	private TableViewerColumn tableViewerColumn_2;
	private TableViewerColumn tableViewerColumnSprintName;
	private TableViewerColumn tableViewerColumnSprintProduct;
	private TableViewerColumn tableViewerColumnSprintNbParticipants;

	private SashForm sashFormDashboard3;
	private SashForm sashFormDashboard4;
	private ToolBar toolBarProductDashboard;
	private ToolItem tltmOpenProductDashboard;
	private ToolBar toolBarSprintDashboard;
	private ToolItem tltmOpenSprintDashboard;
	private TableColumn tblclmnName;
	private TableColumn tblclmnName_1;
	private TableColumn tblclmnName_2;
	private TableColumn tblclmnName_3;
	private TableViewerColumn tableViewerColumn_3;
	private MenuItem itemMenuAboutScrumtool;
	private MenuItem CascadeMenuAddFile;
	private MenuItem itemMenuSprintFile;
	private MenuItem itemMenuCollaboratorFile;
	private MenuItem itemMenuProductFile;
	private MenuItem menuOpenFileSignOut;
	private Menu menuOpenFileProduct;
	private MenuItem mntmNewItem;
	private MenuItem CascadeMenuOpenFileSprint;
	private Menu menuOpenFileSprint;
	private Label linkProfile;
	private Label linkLogout;
	private Label lblWelcomeDashboard;
	private Composite composite_profile;
	private TableColumn tblclmnProduct_1;
	private TableViewerColumn tableViewerColumn_4;

	private TableColumn tblclmnFirstname;
	private TableViewerColumn tableViewerColumn_5;
	private TableColumn tblclmnLastname;
	private TableViewerColumn tableViewerColumn_6;

	private Composite composite_2;
	private Composite composite_3;
	private Label lblGrpProducts;
	private Label lblViewSprints;

	private TableColumn tblclmnEmail;
	private TableViewerColumn tableViewerColumn_7;

	private Label lblViewCollaborator;
	private Label lblAdminCollaborators;
	private Button CheckButtonCollaborator;

	private ToolItem tltmEditCollaboratorsSprint;

	private TableColumn tblclmnFinished;
	private TableColumn tblclmnProduct_2;
	private TableColumn tblclmnFinished_1;

	/**
	 * Open the window.
	 */
	public void open() {
		Display display = Display.getDefault();
		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
	}

	public void close() {
		shell.dispose();
	}

	/**
	 * @wbp.parser.entryPoint
	 */
	public void init() {
		createContents();
	}

	/**
	 * Create contents of the window.
	 */
	protected void createContents() {
		Color ColorBarShell = new Color(null, 29, 126, 168); // FENETRE HOME
																// HAUT
		shell = new Shell(SWT.CLOSE);
		shell.setSize(852, 636);
		shell.setText("SCRUMTOOL - Developed by TEAMSIO - version beta");
		shell.setLayout(new FormLayout());
		shell.setImage(Utils.getImage(Utils.IMG_ICON));

		// Creation composite
		Composite composite = new Composite(shell, SWT.NONE);
		composite.setLayout(new FormLayout());
		FormData fd_composite = new FormData();
		fd_composite.bottom = new FormAttachment(0, 100);
		fd_composite.top = new FormAttachment(0);
		fd_composite.left = new FormAttachment(0);
		fd_composite.right = new FormAttachment(100);
		composite.setLayoutData(fd_composite);
		composite.setBackground(ColorBarShell);
		Composite compositeNom = new Composite(composite, SWT.NONE);
		FormData fd_compositeNom = new FormData();
		fd_compositeNom.top = new FormAttachment(0, 10);
		fd_compositeNom.left = new FormAttachment(0);
		fd_compositeNom.bottom = new FormAttachment(0, 89);
		fd_compositeNom.right = new FormAttachment(0, 351);
		compositeNom.setLayoutData(fd_compositeNom);
		compositeNom.setBackgroundImage(Utils.getImage(Utils.IMG_LOGO));

		// Creation tabFolder
		tabFolder = new TabFolder(shell, SWT.NONE);
		tabFolder.setFont(SWTResourceManager.getFont("Arial", 12, SWT.NORMAL));
		FormData fd_tabFolder = new FormData();
		fd_tabFolder.top = new FormAttachment(composite, 6);

		lblInfoUser = new Label(composite, SWT.NONE);
		lblInfoUser.setAlignment(SWT.RIGHT);
		FormData fd_lblInfoUser = new FormData();
		fd_lblInfoUser.top = new FormAttachment(0, 26);
		fd_lblInfoUser.left = new FormAttachment(compositeNom, 173);
		fd_lblInfoUser.right = new FormAttachment(100, -10);
		lblInfoUser.setLayoutData(fd_lblInfoUser);
		lblInfoUser.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblInfoUser.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblInfoUser.setBackground(Utils.COLOR_BAR_1);

		linkProfile = new Label(composite, SWT.NONE);
		fd_lblInfoUser.bottom = new FormAttachment(linkProfile, -6);
		linkProfile.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		linkProfile.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_linkProfile = new FormData();
		linkProfile.setLayoutData(fd_linkProfile);
		linkProfile.setText("Profile");
		linkProfile.setBackground(Utils.COLOR_BAR_1);

		linkLogout = new Label(composite, SWT.NONE);
		fd_linkProfile.bottom = new FormAttachment(linkLogout, -6);
		fd_linkProfile.right = new FormAttachment(linkLogout, 0, SWT.RIGHT);
		linkLogout.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		linkLogout.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_linkLogout = new FormData();
		fd_linkLogout.bottom = new FormAttachment(compositeNom, 0, SWT.BOTTOM);
		fd_linkLogout.right = new FormAttachment(100, -36);
		linkLogout.setLayoutData(fd_linkLogout);
		linkLogout.setText("Sign out");
		linkLogout.setBackground(Utils.COLOR_BAR_1);

		Composite composite_logout = new Composite(composite, SWT.NONE);
		FormData fd_composite_logout = new FormData();
		fd_composite_logout.top = new FormAttachment(lblInfoUser, 29);
		fd_composite_logout.bottom = new FormAttachment(100, -11);
		fd_composite_logout.right = new FormAttachment(lblInfoUser, 0, SWT.RIGHT);
		fd_composite_logout.left = new FormAttachment(lblInfoUser, 292, SWT.LEFT);
		composite_logout.setLayoutData(fd_composite_logout);
		Utils.addTransparentImage(Utils.getImage(Utils.IMG_LOGOUT), composite_logout);
		composite_logout.setBackground(Utils.COLOR_BAR_1);

		composite_profile = new Composite(composite, SWT.NONE);
		composite_profile.setBackground(SWTResourceManager.getColor(29, 126, 168));
		FormData fd_composite_profile = new FormData();
		fd_composite_profile.right = new FormAttachment(100, -10);
		fd_composite_profile.bottom = new FormAttachment(lblInfoUser, 23, SWT.BOTTOM);
		fd_composite_profile.top = new FormAttachment(lblInfoUser, 6);
		fd_composite_profile.left = new FormAttachment(linkProfile, 6);
		composite_profile.setLayoutData(fd_composite_profile);
		Utils.addTransparentImage(Utils.getImage(Utils.IMG_PROFILE), composite_profile);
		composite_profile.setBackground(Utils.COLOR_BAR_1);
		fd_tabFolder.bottom = new FormAttachment(100, -10);
		fd_tabFolder.right = new FormAttachment(100, -10);
		fd_tabFolder.left = new FormAttachment(0, 10);
		tabFolder.setLayoutData(fd_tabFolder);

		// Creation des items du tabFolder
		TabItem tabDashboard = new TabItem(tabFolder, SWT.NULL);
		tabDashboard.setText("Dashboard");
		tabDashboard.setImage(Utils.getImage(Utils.IMG_DASHBOARD));
		tabProducts = new TabItem(tabFolder, SWT.NULL);
		tabProducts.setText("Products");
		tabProducts.setImage(Utils.getImage(Utils.IMG_PRODUCT));
		TabItem tabSprints = new TabItem(tabFolder, SWT.NULL);
		tabSprints.setText("Sprints");
		tabSprints.setImage(Utils.getImage(Utils.IMG_SPRINT));
		TabItem tabCollaborators = new TabItem(tabFolder, SWT.NULL);
		tabCollaborators.setText("Collaborators");
		tabCollaborators.setImage(Utils.getImage(Utils.IMG_COLLABORATOR));

		// DASHBOARD PAR FLORIAN
		SashForm sashFormDashBoard = new SashForm(tabFolder, SWT.VERTICAL);
		tabDashboard.setControl(sashFormDashBoard);

		Composite compositeDasboard = new Composite(sashFormDashBoard, SWT.NONE);

		Composite compositeDashboard2 = new Composite(compositeDasboard, SWT.BORDER);
		compositeDashboard2.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		compositeDashboard2.setBounds(10, 10, 798, 72);
		compositeDashboard2.setBackground(Utils.COLOR_BAR_1);

		lblWelcomeDashboard = new Label(compositeDashboard2, SWT.NONE);
		lblWelcomeDashboard.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblWelcomeDashboard.setFont(SWTResourceManager.getFont("Arial", 14, SWT.NORMAL));
		lblWelcomeDashboard.setBounds(10, 10, 778, 22);
		lblWelcomeDashboard.setText("Welcome to SCRUMTOOL beta");
		lblWelcomeDashboard.setBackground(Utils.COLOR_BAR_1);

		Label lblTextDashboard = new Label(compositeDashboard2, SWT.NONE);
		lblTextDashboard.setText("You can open a product or sprint below. With SCRUMTOOL management scrum becomes simpler");
		lblTextDashboard.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblTextDashboard.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblTextDashboard.setBounds(10, 38, 778, 15);
		lblTextDashboard.setBackground(Utils.COLOR_BAR_1);

		SashForm sashFormDashboard2 = new SashForm(sashFormDashBoard, SWT.NONE);

		tableViewerProductDashboard = new TableViewer(sashFormDashboard2, SWT.BORDER | SWT.FULL_SELECTION);
		tableProductDashboard = tableViewerProductDashboard.getTable();
		tableProductDashboard.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		tableProductDashboard.setHeaderVisible(true);
		tableProductDashboard.setLinesVisible(true);

		tableViewerColumn_1 = new TableViewerColumn(tableViewerProductDashboard, SWT.NONE);
		tblclmnName_1 = tableViewerColumn_1.getColumn();
		tblclmnName_1.setResizable(false);
		tblclmnName_1.setToolTipText("");
		tblclmnName_1.setWidth(200);
		tblclmnName_1.setText("Products");

		tableViewerSprintDashboard = new TableViewer(sashFormDashboard2, SWT.BORDER | SWT.FULL_SELECTION);
		tableSprintDashboard = tableViewerSprintDashboard.getTable();
		tableSprintDashboard.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		tableSprintDashboard.setHeaderVisible(true);
		tableSprintDashboard.setLinesVisible(true);

		tableViewerColumn_2 = new TableViewerColumn(tableViewerSprintDashboard, SWT.NONE);
		tblclmnName_2 = tableViewerColumn_2.getColumn();
		tblclmnName_2.setResizable(false);
		tblclmnName_2.setWidth(158);
		tblclmnName_2.setText("Sprints");
		
		tblclmnProduct_2 = new TableColumn(tableSprintDashboard, SWT.NONE);
		tblclmnProduct_2.setWidth(137);
		tblclmnProduct_2.setText("Product");
		
		tblclmnFinished_1 = new TableColumn(tableSprintDashboard, SWT.NONE);
		tblclmnFinished_1.setWidth(109);
		tblclmnFinished_1.setText("Finished");

		sashFormDashboard2.setWeights(new int[] { 1, 1 });

		sashFormDashboard3 = new SashForm(sashFormDashBoard, SWT.NONE);

		sashFormDashboard4 = new SashForm(sashFormDashboard3, SWT.NONE);

		toolBarProductDashboard = new ToolBar(sashFormDashboard4, SWT.FLAT | SWT.RIGHT);

		tltmOpenProductDashboard = new ToolItem(toolBarProductDashboard, SWT.NONE);
		tltmOpenProductDashboard.setText("Open project");
		tltmOpenProductDashboard.setImage(Utils.getImage(Utils.IMG_OPEN));

		toolBarSprintDashboard = new ToolBar(sashFormDashboard4, SWT.FLAT | SWT.RIGHT);

		tltmOpenSprintDashboard = new ToolItem(toolBarSprintDashboard, SWT.NONE);
		tltmOpenSprintDashboard.setText("Open sprint");
		tltmOpenSprintDashboard.setImage(Utils.getImage(Utils.IMG_OPEN));
		sashFormDashboard4.setWeights(new int[] { 1, 1 });
		sashFormDashboard3.setWeights(new int[] { 1 });
		sashFormDashBoard.setWeights(new int[] { 92, 308, 23 });

		// PRODUCTS PAR FLORIAN
		SashForm sashFormProducts = new SashForm(tabFolder, SWT.VERTICAL);
		sashFormProducts.setSashWidth(2);
		tabProducts.setControl(sashFormProducts);
		SashForm sashFormProducts2 = new SashForm(sashFormProducts, SWT.NONE);
		tableViewerProducts = new TableViewer(sashFormProducts2, SWT.BORDER | SWT.FULL_SELECTION);
		tableProducts = tableViewerProducts.getTable();
		tableProducts.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		tableProducts.setHeaderVisible(true);
		tableProducts.setLinesVisible(true);

		tableViewerColumn = new TableViewerColumn(tableViewerProducts, SWT.NONE);
		tblclmnName = tableViewerColumn.getColumn();
		tblclmnName.setResizable(false);
		tblclmnName.setWidth(200);
		tblclmnName.setText("Name");
		Composite compositeProducts = new Composite(sashFormProducts2, SWT.NONE);
		compositeProducts.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		compositeProducts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		compositeProducts.setLayout(new FormLayout());
		grpProject = new Group(compositeProducts, SWT.NONE);
		compositeProducts.setBackground(Utils.COLOR_BAR_1);
		grpProject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		grpProject.setFont(SWTResourceManager.getFont("Arial", 12, SWT.NORMAL));
		FormData fd_grpProject = new FormData();
		fd_grpProject.bottom = new FormAttachment(100, -10);
		fd_grpProject.right = new FormAttachment(100, -10);
		fd_grpProject.top = new FormAttachment(0, 10);
		fd_grpProject.left = new FormAttachment(0, 10);
		grpProject.setLayoutData(fd_grpProject);
		grpProject.setLayout(new FormLayout());
		grpProject.setBackground(Utils.COLOR_BAR_1);

		Label lblNameProject = new Label(grpProject, SWT.NONE);
		lblNameProject.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblNameProject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblNameProject.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_lblNameProject = new FormData();
		lblNameProject.setLayoutData(fd_lblNameProject);
		lblNameProject.setText("Project name :");
		lblNameProject.setBackground(Utils.COLOR_BAR_1);

		txtNameProject = new Text(grpProject, SWT.BORDER);
		fd_lblNameProject.bottom = new FormAttachment(txtNameProject, -6);
		fd_lblNameProject.left = new FormAttachment(txtNameProject, 0, SWT.LEFT);
		txtNameProject.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_txtNameProject = new FormData();
		fd_txtNameProject.top = new FormAttachment(0, 47);
		fd_txtNameProject.right = new FormAttachment(100, -177);
		fd_txtNameProject.left = new FormAttachment(0, 18);
		txtNameProject.setLayoutData(fd_txtNameProject);

		Label lblDescriptionProject = new Label(grpProject, SWT.NONE);
		lblDescriptionProject.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblDescriptionProject.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblDescriptionProject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		FormData fd_lblDescriptionProject = new FormData();
		fd_lblDescriptionProject.left = new FormAttachment(0, 18);
		lblDescriptionProject.setLayoutData(fd_lblDescriptionProject);
		lblDescriptionProject.setText("Description :");
		lblDescriptionProject.setBackground(Utils.COLOR_BAR_1);

		txtDescriptionProduct = new StyledText(grpProject, SWT.BORDER);
		txtDescriptionProduct.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		fd_lblDescriptionProject.bottom = new FormAttachment(txtDescriptionProduct, -6);
		FormData fd_txtDescriptionProduct = new FormData();
		fd_txtDescriptionProduct.right = new FormAttachment(100, -38);
		fd_txtDescriptionProduct.left = new FormAttachment(0, 21);
		fd_txtDescriptionProduct.bottom = new FormAttachment(100, -80);
		fd_txtDescriptionProduct.top = new FormAttachment(0, 126);
		txtDescriptionProduct.setLayoutData(fd_txtDescriptionProduct);

		composite_3 = new Composite(grpProject, SWT.NONE);
		composite_3.setBackground(SWTResourceManager.getColor(24, 91, 138));
		FormData fd_composite_3 = new FormData();
		fd_composite_3.top = new FormAttachment(100, -58);
		fd_composite_3.bottom = new FormAttachment(100, -10);
		fd_composite_3.left = new FormAttachment(0, 10);
		fd_composite_3.right = new FormAttachment(100, -10);
		composite_3.setLayoutData(fd_composite_3);

		btnProducts = new Button(composite_3, SWT.NONE);
		btnProducts.setBounds(174, 10, 153, 27);
		btnProducts.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		btnProducts.setBackground(Utils.COLOR_BAR_2);

		lblGrpProducts = new Label(grpProject, SWT.NONE);
		lblGrpProducts.setAlignment(SWT.RIGHT);
		FormData fd_lblGrpProducts = new FormData();
		fd_lblGrpProducts.left = new FormAttachment(0, 18);
		fd_lblGrpProducts.right = new FormAttachment(100, -16);
		fd_lblGrpProducts.top = new FormAttachment(0);
		lblGrpProducts.setLayoutData(fd_lblGrpProducts);
		lblGrpProducts.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblGrpProducts.setFont(SWTResourceManager.getFont("Arial", 13, SWT.NORMAL));
		lblGrpProducts.setBackground(Utils.COLOR_BAR_1);
		sashFormProducts2.setWeights(new int[] { 415, 400 });
		ToolBar toolBarProducts = new ToolBar(sashFormProducts, SWT.FLAT | SWT.RIGHT);
		toolBarProducts.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		toolBarProducts.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		tltmAddProduct = new ToolItem(toolBarProducts, SWT.NONE);
		tltmAddProduct.setEnabled(true);
		tltmAddProduct.setText("Add product");
		tltmAddProduct.setImage(Utils.getImage(Utils.IMG_ADD));
		tltmEditProduct = new ToolItem(toolBarProducts, SWT.NONE);
		tltmEditProduct.setEnabled(true);
		tltmEditProduct.setText("Edit project");
		tltmEditProduct.setImage(Utils.getImage(Utils.IMG_EDIT));

		tltmEditCollaboratorsProduct = new ToolItem(toolBarProducts, SWT.NONE);
		tltmEditCollaboratorsProduct.setText("Edit collaborators");
		tltmEditCollaboratorsProduct.setImage(Utils.getImage(Utils.IMG_COLLABORATOR));
		tltmOpenProduct = new ToolItem(toolBarProducts, SWT.NONE);
		tltmOpenProduct.setText("Open");
		tltmOpenProduct.setImage(Utils.getImage(Utils.IMG_OPEN));
		tltmDelProduct = new ToolItem(toolBarProducts, SWT.NONE);
		tltmDelProduct.setEnabled(true);
		tltmDelProduct.setText("Delete project");
		tltmDelProduct.setImage(Utils.getImage(Utils.IMG_DEL));
		sashFormProducts.setWeights(new int[] { 100, 7 });

		// SPRINTS PAR ANTHONY
		SashForm sashFormSprints = new SashForm(tabFolder, SWT.VERTICAL);
		tabSprints.setControl(sashFormSprints);
		SashForm sashFormSprints2 = new SashForm(sashFormSprints, SWT.NONE);
		tableViewerSprints = new TableViewer(sashFormSprints2, SWT.BORDER | SWT.FULL_SELECTION);
		tableSprints = tableViewerSprints.getTable();
		tableSprints.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));

		// TableColumnLayout layout = new TableColumnLayout();
		// col = new TableColumn(tableSprints, 1);
		// layout.setColumnData(col, new );
		// col.setText("Nom");

		// tableSprints.setBounds(0, 0, 50, 50);
		tableSprints.setHeaderVisible(true);
		tableSprints.setLinesVisible(true);

		tableViewerColumn_3 = new TableViewerColumn(tableViewerSprints, SWT.NONE);
		tblclmnName_3 = tableViewerColumn_3.getColumn();
		tblclmnName_3.setWidth(161);
		tblclmnName_3.setText("Name");

		tableViewerColumn_4 = new TableViewerColumn(tableViewerSprints, SWT.NONE);
		tblclmnProduct_1 = tableViewerColumn_4.getColumn();
		tblclmnProduct_1.setWidth(136);
		tblclmnProduct_1.setText("Product");

		tableViewerColumn_7 = new TableViewerColumn(tableViewerSprints, SWT.NONE);
		tblclmnFinished = tableViewerColumn_7.getColumn();
		tblclmnFinished.setWidth(112);
		tblclmnFinished.setText("Finished");

		Composite compositeSprints = new Composite(sashFormSprints2, SWT.NONE);
		compositeSprints.setLayout(new FormLayout());
		grpSprint = new Group(compositeSprints, SWT.NONE);
		compositeSprints.setBackground(Utils.COLOR_BAR_1);
		grpSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_grpSprint = new FormData();
		fd_grpSprint.bottom = new FormAttachment(100, -10);
		fd_grpSprint.right = new FormAttachment(100, -10);
		fd_grpSprint.top = new FormAttachment(0, 10);
		fd_grpSprint.left = new FormAttachment(0, 10);
		grpSprint.setLayoutData(fd_grpSprint);
		grpSprint.setLayout(new FormLayout());
		grpSprint.setBackground(Utils.COLOR_BAR_1);

		Label lblNameSprint = new Label(grpSprint, SWT.NONE);
		lblNameSprint.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblNameSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_lblNameSprint = new FormData();
		lblNameSprint.setLayoutData(fd_lblNameSprint);
		lblNameSprint.setText("Name :");
		lblNameSprint.setBackground(Utils.COLOR_BAR_1);

		txtNameSprint = new Text(grpSprint, SWT.BORDER);
		txtNameSprint.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		txtNameSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		fd_lblNameSprint.bottom = new FormAttachment(txtNameSprint, -6);
		fd_lblNameSprint.left = new FormAttachment(txtNameSprint, 0, SWT.LEFT);
		FormData fd_txtNameSprint = new FormData();
		fd_txtNameSprint.left = new FormAttachment(0, 22);
		fd_txtNameSprint.top = new FormAttachment(0, 125);
		txtNameSprint.setLayoutData(fd_txtNameSprint);
		txtNameSprint.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		Label lblProductsSprint = new Label(grpSprint, SWT.NONE);
		lblProductsSprint.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblProductsSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_lblProductsSprint = new FormData();
		fd_lblProductsSprint.top = new FormAttachment(0, 35);
		fd_lblProductsSprint.left = new FormAttachment(0, 22);
		lblProductsSprint.setLayoutData(fd_lblProductsSprint);
		lblProductsSprint.setText("Products :");
		lblProductsSprint.setBackground(Utils.COLOR_BAR_1);

		comboViewerSprint = new ComboViewer(grpSprint, SWT.NONE);
		cbProductsSprints = comboViewerSprint.getCombo();
		cbProductsSprints.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		cbProductsSprints.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		cbProductsSprints.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		fd_txtNameSprint.right = new FormAttachment(cbProductsSprints, 0, SWT.RIGHT);
		FormData fd_cbProductsSprints = new FormData();
		fd_cbProductsSprints.right = new FormAttachment(100, -229);
		fd_cbProductsSprints.left = new FormAttachment(0, 22);
		fd_cbProductsSprints.top = new FormAttachment(lblProductsSprint, 3);
		cbProductsSprints.setLayoutData(fd_cbProductsSprints);

		dtStartSprint = new DateTime(grpSprint, SWT.BORDER);
		dtStartSprint.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		dtStartSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_dtStartSprint = new FormData();
		fd_dtStartSprint.top = new FormAttachment(txtNameSprint, 48);
		fd_dtStartSprint.right = new FormAttachment(txtNameSprint, 0, SWT.RIGHT);
		fd_dtStartSprint.left = new FormAttachment(lblNameSprint, 0, SWT.LEFT);
		dtStartSprint.setLayoutData(fd_dtStartSprint);
		dtStartSprint.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		Label lblDebutSprint = new Label(grpSprint, SWT.NONE);
		lblDebutSprint.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblDebutSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_lblDebutSprint = new FormData();
		fd_lblDebutSprint.bottom = new FormAttachment(dtStartSprint, -6);
		fd_lblDebutSprint.left = new FormAttachment(lblNameSprint, 0, SWT.LEFT);
		lblDebutSprint.setLayoutData(fd_lblDebutSprint);
		lblDebutSprint.setText("Sprint start :");
		lblDebutSprint.setBackground(Utils.COLOR_BAR_1);

		Label lblFinSprint = new Label(grpSprint, SWT.NONE);
		lblFinSprint.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblFinSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_lblFinSprint = new FormData();
		fd_lblFinSprint.left = new FormAttachment(lblDebutSprint, 63);
		fd_lblFinSprint.top = new FormAttachment(lblDebutSprint, 0, SWT.TOP);
		lblFinSprint.setLayoutData(fd_lblFinSprint);
		lblFinSprint.setText("Sprint end :");
		lblFinSprint.setBackground(Utils.COLOR_BAR_1);

		dtEndSprint = new DateTime(grpSprint, SWT.BORDER);
		dtEndSprint.setForeground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_DARK_SHADOW));
		dtEndSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		FormData fd_dtEndSprint = new FormData();
		fd_dtEndSprint.right = new FormAttachment(100, -99);
		fd_dtEndSprint.left = new FormAttachment(dtStartSprint, 16);
		fd_dtEndSprint.bottom = new FormAttachment(dtStartSprint, 0, SWT.BOTTOM);
		dtEndSprint.setLayoutData(fd_dtEndSprint);
		dtEndSprint.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		composite_2 = new Composite(grpSprint, SWT.NONE);
		composite_2.setBackground(SWTResourceManager.getColor(24, 91, 138));
		FormData fd_composite_2 = new FormData();
		fd_composite_2.top = new FormAttachment(100, -60);
		fd_composite_2.bottom = new FormAttachment(100, -10);
		fd_composite_2.left = new FormAttachment(0, 10);
		fd_composite_2.right = new FormAttachment(100, -10);
		composite_2.setLayoutData(fd_composite_2);

		btnSprint = new Button(composite_2, SWT.NONE);
		btnSprint.setBounds(200, 13, 144, 27);
		btnSprint.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		btnSprint.setBackground(Utils.COLOR_BAR_2);

		lblViewSprints = new Label(grpSprint, SWT.NONE);
		lblViewSprints.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblViewSprints.setFont(SWTResourceManager.getFont("Ubuntu", 13, SWT.NORMAL));
		FormData fd_lblViewSprints = new FormData();
		fd_lblViewSprints.top = new FormAttachment(0, 10);
		fd_lblViewSprints.right = new FormAttachment(100, -10);
		lblViewSprints.setLayoutData(fd_lblViewSprints);
		lblViewSprints.setText("View Sprint");
		lblViewSprints.setBackground(Utils.COLOR_BAR_1);
		sashFormSprints2.setWeights(new int[] { 415, 400 });
		ToolBar toolBarSprints = new ToolBar(sashFormSprints, SWT.FLAT | SWT.RIGHT);
		toolBarSprints.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		tltmAddSprints = new ToolItem(toolBarSprints, SWT.NONE);
		tltmAddSprints.setText("Add sprint");
		tltmAddSprints.setImage(Utils.getImage(Utils.IMG_ADD));
		tltmEditSprints = new ToolItem(toolBarSprints, SWT.NONE);
		tltmEditSprints.setText("Edit sprint");
		tltmEditSprints.setImage(Utils.getImage(Utils.IMG_EDIT));

		tltmEditCollaboratorsSprint = new ToolItem(toolBarSprints, SWT.NONE);
		tltmEditCollaboratorsSprint.setImage(Utils.getImage(Utils.IMG_COLLABORATOR));
		tltmEditCollaboratorsSprint.setText("Edit Collaborators");
		tltmOpenSprints = new ToolItem(toolBarSprints, SWT.NONE);
		tltmOpenSprints.setText("Open");
		tltmOpenSprints.setImage(Utils.getImage(Utils.IMG_OPEN));
		tltmDeleteSprints = new ToolItem(toolBarSprints, SWT.NONE);
		tltmDeleteSprints.setText("Delete sprint");
		tltmDeleteSprints.setImage(Utils.getImage(Utils.IMG_DEL));
		sashFormSprints.setWeights(new int[] { 100, 7 });

		// --------------------------------------------- COLLABORATORS PAR JORDI

		// sashFormCollaborators1
		SashForm sashFormCollaborators1 = new SashForm(tabFolder, SWT.VERTICAL);
		sashFormCollaborators1.setSashWidth(2);

		// tabCollaborators
		tabCollaborators.setControl(sashFormCollaborators1);

		// sashFormCollaborators2
		SashForm sashFormCollaborators2 = new SashForm(sashFormCollaborators1, SWT.NONE);

		// tableViewerCollaborators
		tableViewerCollaborators = new TableViewer(sashFormCollaborators2, SWT.BORDER | SWT.FULL_SELECTION);

		// tableCollaborators
		tableCollaborators = tableViewerCollaborators.getTable();
		tableCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		tableCollaborators.setHeaderVisible(true);
		tableCollaborators.setLinesVisible(true);

		tableViewerColumn_5 = new TableViewerColumn(tableViewerCollaborators, SWT.NONE);
		tblclmnFirstname = tableViewerColumn_5.getColumn();
		tblclmnFirstname.setWidth(100);
		tblclmnFirstname.setText("Firstname");

		tableViewerColumn_6 = new TableViewerColumn(tableViewerCollaborators, SWT.NONE);
		tblclmnLastname = tableViewerColumn_6.getColumn();
		tblclmnLastname.setWidth(100);
		tblclmnLastname.setText("Lastname");

		tableViewerColumn_7 = new TableViewerColumn(tableViewerCollaborators, SWT.NONE);
		tblclmnEmail = tableViewerColumn_7.getColumn();
		tblclmnEmail.setWidth(211);
		tblclmnEmail.setText("Email");

		// compositeCollaborators1
		Composite compositeCollaborators1 = new Composite(sashFormCollaborators2, SWT.NONE);
		compositeCollaborators1.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		compositeCollaborators1.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		compositeCollaborators1.setBackground(Utils.COLOR_BAR_1);
		compositeCollaborators1.setLayout(new FormLayout());

		// fd_grpCollaborators
		FormData fd_grpCollaborators = new FormData();
		fd_grpCollaborators.top = new FormAttachment(0, 10);
		fd_grpCollaborators.left = new FormAttachment(0, 10);
		fd_grpCollaborators.bottom = new FormAttachment(100, -10);
		fd_grpCollaborators.right = new FormAttachment(100, -10);

		// grpCollaborators
		grpCollaborators = new Group(compositeCollaborators1, SWT.NONE);
		grpCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		grpCollaborators.setBackground(Utils.COLOR_BAR_1);
		grpCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		grpCollaborators.setLayout(new FormLayout());
		// grpCollaborators.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		grpCollaborators.setLayoutData(fd_grpCollaborators);

		// lblFirstnameCollaborators
		Label lblFirstnameCollaborators = new Label(grpCollaborators, SWT.NONE);
		lblFirstnameCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		FormData fd_lblFirstnameCollaborators = new FormData();
		fd_lblFirstnameCollaborators.top = new FormAttachment(0, 62);
		lblFirstnameCollaborators.setLayoutData(fd_lblFirstnameCollaborators);
		lblFirstnameCollaborators.setBackground(Utils.COLOR_BAR_1);
		lblFirstnameCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblFirstnameCollaborators.setText("Firstname :");

		// lblLastnameCollaborators
		lblLastnameCollaborators = new Label(grpCollaborators, SWT.NONE);
		fd_lblFirstnameCollaborators.left = new FormAttachment(lblLastnameCollaborators, 0, SWT.LEFT);
		lblLastnameCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		FormData fd_lblLastnameCollaborators = new FormData();
		fd_lblLastnameCollaborators.top = new FormAttachment(lblFirstnameCollaborators, 29);
		fd_lblLastnameCollaborators.left = new FormAttachment(0, 20);
		lblLastnameCollaborators.setLayoutData(fd_lblLastnameCollaborators);
		lblLastnameCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblLastnameCollaborators.setBackground(Utils.COLOR_BAR_1);
		lblLastnameCollaborators.setText("Lastname :");

		// lblEmailCollaborators
		Label lblEmailCollaborators = new Label(grpCollaborators, SWT.NONE);
		lblEmailCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		FormData fd_lblEmailCollaborators = new FormData();
		fd_lblEmailCollaborators.left = new FormAttachment(0, 20);
		lblEmailCollaborators.setLayoutData(fd_lblEmailCollaborators);
		lblEmailCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblEmailCollaborators.setBackground(Utils.COLOR_BAR_1);
		lblEmailCollaborators.setText("Email :");

		// lblPasswordCollaborators
		Label lblPasswordCollaborators = new Label(grpCollaborators, SWT.NONE);
		fd_lblEmailCollaborators.bottom = new FormAttachment(lblPasswordCollaborators, -31);
		lblPasswordCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		FormData fd_lblPasswordCollaborators = new FormData();
		fd_lblPasswordCollaborators.left = new FormAttachment(0, 20);
		lblPasswordCollaborators.setLayoutData(fd_lblPasswordCollaborators);
		lblPasswordCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblPasswordCollaborators.setBackground(Utils.COLOR_BAR_1);
		lblPasswordCollaborators.setText("Password :");

		// lblConfirmPasswordCollaborators
		Label lblConfirmPasswordCollaborators = new Label(grpCollaborators, SWT.NONE);
		fd_lblPasswordCollaborators.bottom = new FormAttachment(lblConfirmPasswordCollaborators, -29);
		lblConfirmPasswordCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		FormData fd_lblConfirmPasswordCollaborators = new FormData();
		fd_lblConfirmPasswordCollaborators.left = new FormAttachment(0, 20);
		fd_lblConfirmPasswordCollaborators.top = new FormAttachment(0, 251);
		lblConfirmPasswordCollaborators.setLayoutData(fd_lblConfirmPasswordCollaborators);
		lblConfirmPasswordCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblConfirmPasswordCollaborators.setBackground(Utils.COLOR_BAR_1);
		lblConfirmPasswordCollaborators.setText("Confirm password :");

		// txtFirstnameCollaborators
		txtFirstnameCollaborators = new Text(grpCollaborators, SWT.BORDER);
		txtFirstnameCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		FormData fd_txtFirstnameCollaborators = new FormData();
		fd_txtFirstnameCollaborators.right = new FormAttachment(100, -62);
		fd_txtFirstnameCollaborators.left = new FormAttachment(lblFirstnameCollaborators, 60);
		fd_txtFirstnameCollaborators.top = new FormAttachment(0, 59);
		txtFirstnameCollaborators.setLayoutData(fd_txtFirstnameCollaborators);
		txtFirstnameCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		txtFirstnameCollaborators.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		// txtLastNameCollaborators
		txtLastNameCollaborators = new Text(grpCollaborators, SWT.BORDER);
		txtLastNameCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		FormData fd_txtLastNameCollaborators = new FormData();
		fd_txtLastNameCollaborators.right = new FormAttachment(100, -62);
		fd_txtLastNameCollaborators.left = new FormAttachment(lblLastnameCollaborators, 61);
		fd_txtLastNameCollaborators.top = new FormAttachment(lblLastnameCollaborators, -3, SWT.TOP);
		txtLastNameCollaborators.setLayoutData(fd_txtLastNameCollaborators);
		txtLastNameCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		txtLastNameCollaborators.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		// txtEmailCollaborators
		txtEmailCollaborators = new Text(grpCollaborators, SWT.BORDER);
		txtEmailCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		FormData fd_txtEmailCollaborators = new FormData();
		fd_txtEmailCollaborators.left = new FormAttachment(0, 154);
		txtEmailCollaborators.setLayoutData(fd_txtEmailCollaborators);
		txtEmailCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		txtEmailCollaborators.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		// txtPasswordCollaborators
		txtPasswordCollaborators = new Text(grpCollaborators, SWT.BORDER | SWT.PASSWORD);
		fd_txtEmailCollaborators.right = new FormAttachment(txtPasswordCollaborators, 0, SWT.RIGHT);
		fd_txtEmailCollaborators.bottom = new FormAttachment(txtPasswordCollaborators, -25);
		txtPasswordCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		FormData fd_txtPasswordCollaborators = new FormData();
		fd_txtPasswordCollaborators.left = new FormAttachment(lblPasswordCollaborators, 60);
		txtPasswordCollaborators.setLayoutData(fd_txtPasswordCollaborators);
		txtPasswordCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		txtPasswordCollaborators.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		// txtConfirmPasswordCollaborators
		txtConfirmPasswordCollaborators = new Text(grpCollaborators, SWT.BORDER | SWT.PASSWORD);
		fd_txtPasswordCollaborators.right = new FormAttachment(txtConfirmPasswordCollaborators, 0, SWT.RIGHT);
		txtConfirmPasswordCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLACK));
		fd_txtPasswordCollaborators.bottom = new FormAttachment(txtConfirmPasswordCollaborators, -23);
		FormData fd_txtConfirmPasswordCollaborators = new FormData();
		fd_txtConfirmPasswordCollaborators.right = new FormAttachment(100, -62);
		fd_txtConfirmPasswordCollaborators.left = new FormAttachment(lblConfirmPasswordCollaborators, 6);
		fd_txtConfirmPasswordCollaborators.top = new FormAttachment(0, 248);
		txtConfirmPasswordCollaborators.setLayoutData(fd_txtConfirmPasswordCollaborators);
		txtConfirmPasswordCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		txtConfirmPasswordCollaborators.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		Composite composite_1 = new Composite(grpCollaborators, SWT.NONE);
		FormData fd_composite_1 = new FormData();
		composite_1.setBackground(Utils.COLOR_BAR_2);
		fd_composite_1.right = new FormAttachment(100, -7);
		fd_composite_1.top = new FormAttachment(lblConfirmPasswordCollaborators, 46);
		fd_composite_1.bottom = new FormAttachment(100, -7);
		fd_composite_1.left = new FormAttachment(0, 7);
		composite_1.setLayoutData(fd_composite_1);

		// btnCollaborators
		btnCollaborators = new Button(composite_1, SWT.NONE);
		btnCollaborators.setBounds(148, 10, 202, 27);
		btnCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		btnCollaborators.setBackground(Utils.COLOR_BAR_2);

		lblViewCollaborator = new Label(grpCollaborators, SWT.NONE);
		lblViewCollaborator.setText("View Collaborator");
		lblViewCollaborator.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblViewCollaborator.setFont(SWTResourceManager.getFont("Ubuntu", 13, SWT.NORMAL));
		lblViewCollaborator.setBackground(SWTResourceManager.getColor(29, 126, 168));
		FormData fd_lblViewCollaborator = new FormData();
		fd_lblViewCollaborator.top = new FormAttachment(0, 10);
		fd_lblViewCollaborator.right = new FormAttachment(composite_1, 0, SWT.RIGHT);
		lblViewCollaborator.setLayoutData(fd_lblViewCollaborator);

		lblAdminCollaborators = new Label(grpCollaborators, SWT.NONE);
		lblAdminCollaborators.setText("Administrator :");
		lblAdminCollaborators.setForeground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
		lblAdminCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		lblAdminCollaborators.setBackground(SWTResourceManager.getColor(29, 126, 168));
		FormData fd_lblAdminCollaborators = new FormData();
		fd_lblAdminCollaborators.bottom = new FormAttachment(composite_1, -6);
		fd_lblAdminCollaborators.left = new FormAttachment(lblFirstnameCollaborators, 0, SWT.LEFT);
		lblAdminCollaborators.setLayoutData(fd_lblAdminCollaborators);

		CheckButtonCollaborator = new Button(grpCollaborators, SWT.CHECK);
		FormData fd_CheckButtonCollaborator = new FormData();
		fd_CheckButtonCollaborator.top = new FormAttachment(lblAdminCollaborators, 0, SWT.TOP);
		fd_CheckButtonCollaborator.left = new FormAttachment(txtFirstnameCollaborators, 0, SWT.LEFT);
		CheckButtonCollaborator.setLayoutData(fd_CheckButtonCollaborator);
		CheckButtonCollaborator.setBackground(Utils.COLOR_BAR_1);

		// sashFormCollaborators2
		sashFormCollaborators2.setWeights(new int[] { 415, 400 });

		// toolBarCollaborators
		ToolBar toolBarCollaborators = new ToolBar(sashFormCollaborators1, SWT.FLAT | SWT.RIGHT);
		toolBarCollaborators.setFont(SWTResourceManager.getFont("Arial", 11, SWT.NORMAL));
		toolBarCollaborators.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));

		// tltmAddCollaborator
		tltmAddCollaborator = new ToolItem(toolBarCollaborators, SWT.NONE);
		tltmAddCollaborator.setText("Add collaborator");
		tltmAddCollaborator.setImage(Utils.getImage(Utils.IMG_ADD));

		// tltmEditCollaborator
		tltmEditCollaborator = new ToolItem(toolBarCollaborators, SWT.NONE);
		tltmEditCollaborator.setText("Edit collaborator");
		tltmEditCollaborator.setImage(Utils.getImage(Utils.IMG_EDIT));

		// tltmDelCollaborator
		tltmDelCollaborator = new ToolItem(toolBarCollaborators, SWT.NONE);
		tltmDelCollaborator.setText("Delete collaborator");
		tltmDelCollaborator.setImage(Utils.getImage(Utils.IMG_DEL));
		sashFormCollaborators1.setWeights(new int[] { 100, 7 });

		Menu menuHome = new Menu(shell, SWT.BAR);
		shell.setMenuBar(menuHome);

		MenuItem menuFileHome = new MenuItem(menuHome, SWT.CASCADE);
		menuFileHome.setText("File");

		Menu sousMenuFileHome = new Menu(menuFileHome);
		menuFileHome.setMenu(sousMenuFileHome);

		CascadeMenuAddFile = new MenuItem(sousMenuFileHome, SWT.CASCADE);
		CascadeMenuAddFile.setText("Add");
		CascadeMenuAddFile.setImage(Utils.getImage(Utils.IMG_ADD));

		Menu menuAddFileAdd = new Menu(CascadeMenuAddFile);
		CascadeMenuAddFile.setMenu(menuAddFileAdd);

		itemMenuProductFile = new MenuItem(menuAddFileAdd, SWT.CASCADE);
		itemMenuProductFile.setText("Product");

		itemMenuSprintFile = new MenuItem(menuAddFileAdd, SWT.NONE);
		itemMenuSprintFile.setText("Sprint");

		itemMenuCollaboratorFile = new MenuItem(menuAddFileAdd, SWT.NONE);
		itemMenuCollaboratorFile.setText("Collaborator");

		MenuItem CascadeMenuOpenFile = new MenuItem(sousMenuFileHome, SWT.CASCADE);
		CascadeMenuOpenFile.setText("Open");
		CascadeMenuOpenFile.setImage(Utils.getImage(Utils.IMG_OPEN));

		Menu menuOpenFileOpen = new Menu(CascadeMenuOpenFile);
		CascadeMenuOpenFile.setMenu(menuOpenFileOpen);

		MenuItem CascadeMenuOpenFileProduct = new MenuItem(menuOpenFileOpen, SWT.CASCADE);
		CascadeMenuOpenFileProduct.setText("Product");

		menuOpenFileProduct = new Menu(CascadeMenuOpenFileProduct);
		CascadeMenuOpenFileProduct.setMenu(menuOpenFileProduct);

		CascadeMenuOpenFileSprint = new MenuItem(menuOpenFileOpen, SWT.CASCADE);
		CascadeMenuOpenFileSprint.setText("Sprint");

		menuOpenFileSprint = new Menu(CascadeMenuOpenFileSprint);
		CascadeMenuOpenFileSprint.setMenu(menuOpenFileSprint);

		menuOpenFileSignOut = new MenuItem(sousMenuFileHome, SWT.NONE);
		menuOpenFileSignOut.setText("Sign out");
		menuOpenFileSignOut.setImage(Utils.getImage(Utils.IMG_LOGOUT));

		MenuItem menuHelpHome = new MenuItem(menuHome, SWT.CASCADE);
		menuHelpHome.setText("Help");

		Menu sousMenuHelpHome = new Menu(menuHelpHome);
		menuHelpHome.setMenu(sousMenuHelpHome);

		itemMenuAboutScrumtool = new MenuItem(sousMenuHelpHome, SWT.NONE);
		itemMenuAboutScrumtool.setText("About SCRUMTOOL");
		itemMenuAboutScrumtool.setImage(Utils.getImage(Utils.IMG_HELP));

	}


	public MenuItem getCascadeMenuAddFile() {
		return CascadeMenuAddFile;
	}

	public ToolItem getTltmEditCollaboratorsSprint() {
		return tltmEditCollaboratorsSprint;
	}

	public TableViewerColumn getTableViewerColumn_7() {
		return tableViewerColumn_7;
	}

	public TabItem getTabProducts() {
		return tabProducts;
	}

	public Button getCheckButtonCollaborator() {
		return CheckButtonCollaborator;
	}

	public Label getLblViewCollaborator() {
		return lblViewCollaborator;
	}

	public Label getLblViewSprints() {
		return lblViewSprints;
	}

	public Label getLblGrpProducts() {
		return lblGrpProducts;
	}

	public TableViewerColumn getTableViewerColumn_4() {
		return tableViewerColumn_4;
	}

	public Label getLblWelcomeDashboard() {
		return lblWelcomeDashboard;
	}

	public Menu getMenuOpenFileSprint() {
		return menuOpenFileSprint;
	}

	public Menu getMenuOpenFileProduct() {
		return menuOpenFileProduct;
	}

	public MenuItem getMenuOpenFileSignOut() {
		return menuOpenFileSignOut;
	}

	public MenuItem getItemMenuCollaboratorFile() {
		return itemMenuCollaboratorFile;
	}

	public MenuItem getItemMenuSprintFile() {
		return itemMenuSprintFile;
	}

	public MenuItem getItemMenuProductFile() {
		return itemMenuProductFile;
	}

	public MenuItem getItemMenuOpenFile() {
		return CascadeMenuAddFile;
	}

	public MenuItem getItemMenuAboutScrumtool() {
		return itemMenuAboutScrumtool;
	}

	public TableViewerColumn getTableViewerColumn_3() {
		return tableViewerColumn_3;
	}

	public TableViewerColumn getTableViewerColumnSprintName() {
		return tableViewerColumnSprintName;
	}

	public TableViewerColumn getTableViewerColumnSprintProduct() {
		return tableViewerColumnSprintProduct;
	}

	public TableViewerColumn getTableViewerColumnSprintNbParticipants() {
		return tableViewerColumnSprintNbParticipants;
	}

	public ToolItem getTltmOpenSprintDashboard() {
		return tltmOpenSprintDashboard;
	}

	public ToolItem getTltmOpenProductDashboard() {
		return tltmOpenProductDashboard;
	}

	public Table getTableSprintDashboard() {
		return tableSprintDashboard;
	}

	public Table getTableProductDashboard() {
		return tableProductDashboard;
	}

	public TableViewer getTableViewerSprintDashboard() {
		return tableViewerSprintDashboard;
	}

	public ToolItem getTltmEditCollaboratorsProduct() {
		return tltmEditCollaboratorsProduct;
	}

	public ToolItem getTltmOpenSprints() {
		return tltmOpenSprints;
	}

	public TableViewer getTableViewerProductDashboard() {
		return tableViewerProductDashboard;
	}

	public ComboViewer getComboViewerSprint() {
		return comboViewerSprint;
	}

	public Combo getCbProductsSprints() {
		return cbProductsSprints;
	}

	public Text getTxtNameSprint() {
		return txtNameSprint;
	}

	public DateTime getdtEndSprint() {
		return dtEndSprint;
	}

	public DateTime getdtStartSprint() {
		return dtStartSprint;
	}

	public ToolItem getTltmOpenProduct() {
		return tltmOpenProduct;
	}

	public Label getLinkLogout() {
		return linkLogout;
	}

	public Label getLinkProfile() {
		return linkProfile;
	}

	public Label getLblInfoUser() {
		return lblInfoUser;
	}

	public Button getBtnSprint() {
		return btnSprint;
	}

	public Button getBtnCollaborators() {
		return btnCollaborators;
	}

	public Text getTxtConfirmPasswordCollaborators() {
		return txtConfirmPasswordCollaborators;
	}

	public Text getTxtPasswordCollaborators() {
		return txtPasswordCollaborators;
	}

	public Text getTxtEmailCollaborators() {
		return txtEmailCollaborators;
	}

	public Text getTxtLastNameCollaborators() {
		return txtLastNameCollaborators;
	}

	public Text getTxtFirstnameCollaborators() {
		return txtFirstnameCollaborators;
	}

	public Table getTableCollaborators() {
		return tableCollaborators;
	}

	public TableViewer getTableViewerCollaborators() {
		return tableViewerCollaborators;
	}

	public StyledText getTxtDescriptionProduct() {
		return txtDescriptionProduct;
	}

	public Table getTableProducts() {
		return tableProducts;
	}

	public TableViewer getTableViewerProducts() {
		return tableViewerProducts;
	}

	public TableViewer getTableViewerSprints() {
		return tableViewerSprints;
	}

	public List<Sprint> getSprints() {
		return DAO.getSprints();
	}

	public Button getBtnProducts() {
		return btnProducts;
	}

	public Text getTxtNameProject() {
		return txtNameProject;
	}

	public ToolItem getTltmAddCollaborator() {
		return tltmAddCollaborator;
	}

	public ToolItem getTltmDelCollaborator() {
		return tltmDelCollaborator;
	}

	public ToolItem getTltmEditCollaborator() {
		return tltmEditCollaborator;
	}

	public Group getGrpCollaborators() {
		return grpCollaborators;
	}

	public Group getGrpProject() {
		return grpProject;
	}

	public ToolItem getTltmAddProduct() {
		return tltmAddProduct;
	}

	public ToolItem getTltmDelProduct() {
		return tltmDelProduct;
	}

	public ToolItem getTltmEditProduct() {
		return tltmEditProduct;
	}

	public Group getGrpSprint() {
		return grpSprint;
	}

	public ToolItem getTltmAddSprints() {
		return tltmAddSprints;
	}

	public ToolItem getTltmEditSprints() {
		return tltmEditSprints;
	}

	public ToolItem getTltmDeleteSprints() {
		return tltmDeleteSprints;
	}

	public Table getTableSprints() {
		return tableSprints;
	}

	public TabFolder getTabFolder() {
		return tabFolder;
	}

	public Home getHome() {
		return this;
	}

	public Shell getShell() {
		return shell;
	}
}
